package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 类目资质信息业务对象 erp_collect_product_category_Qualification
 *
 * @author erp
 * @date 2023-10-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpCollectProductCategoryQualificationBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类目id
     */
    @NotBlank(message = "类目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryId;

    /**
     * 类目名称
     */
    @NotBlank(message = "类目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryName;

    /**
     * 资质信息名称
     */
    @NotBlank(message = "资质信息名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 资质信息类型 ："image","text"
     */
    @NotBlank(message = "资质信息类型 ：image text", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 资质信息key, 每个类目下的key都不一样，请先调用资质信息查询接口：aliexpress.category.qualifications.list，查询对应的key和type
     */
    @NotBlank(message = "资质信息key, 每个类目下的key都不一样，请先调用资质信息查询接口：aliexpress.category.qualifications.list，查询对应的key和type不能为空", groups = { AddGroup.class, EditGroup.class })
    private String QualificationKey;

    /**
     * 资质信息说明
     */
    @NotBlank(message = "资质信息说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tips;

    /**
     * 是否必填
     */
    @NotBlank(message = "是否必填不能为空", groups = { AddGroup.class, EditGroup.class })
    private String required;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
